<div ng-controller="LoginController">
    <input type="text" ng-model="userName" placeholder="User name">
	<a class='btn btn-large pull-right' href='#/chat' ng-click="addGlobal()">Login as {{userName}}</a>
	<input type="checkbox" ng-model="persist" ng-change="persistUser()"/>
</div>